import Layout from '@/layout/index.vue'
 const EditorRoutes = [
  {
    path: "/",
    component: Layout,
    redirect: "/home",
    name: "首页",
    children: [
      {
        path: "home",
        name: "首页",
        component: () => import("@/views/home/index.vue"),
        meta: { title: "Home", icon: "home" },
      },
    ],
  },
  {
    path: '/example',
    component: Layout,
    redirect: '/example/table',
    name: '表格&树',
    meta: { title: 'Example', icon: 'el-icon-s-help' },
    children: [
      {
        path: 'table',
        name: 'Table',
        component: () => import('@/views/table/tableEditor.vue'),
        meta: { title: 'Table', icon: 'table' }
      },
      {
        path: 'tree',
        name: 'Tree',
        component: () => import('@/views/tree/treeEditor.vue'),
        meta: { title: 'Tree', icon: 'tree' }
      }
    ]
  },
  { path: '/:pathMatch(.*)*', redirect: '/404', hidden: true }
];
export default EditorRoutes